#include<stdio.h>
#include<unistd.h>
#include<string.h>


#define MAX   101
#define LABLE '='

int main()
{
    char bar[MAX];
    memset(bar,'\0',sizeof(bar));//初始设定都是\0

    int i = 0;
    while(i <= 100)
    {
        printf("%s\r", bar);
        bar[i++] = LABLE;
        fflush(stdout);
        usleep(100000);
    }

    return 0;

}
